<ion-view view-title="发表评价" class="aftalk">
	<ion-nav-bar ng-class="baseclass">
		<ion-nav-back-button></ion-nav-back-button>
		<ion-nav-buttons side="right">
			<!--<button class="button  button-clear" on-tap="sendComment()">发布</button>-->
			<!--<p class="savebtntext f-size-15" on-tap="sendComment()">发布</p>-->
			<button class="button button-clear saveText" on-tap="sendComment()">发布</button>
		</ion-nav-buttons>
	</ion-nav-bar>
	<!--一个订单只能有一个店铺-->
	<ion-content>
		<div ng-repeat="order in orders.goods">
			<div class="item item-input shopframe" on-tap="onshow_detail(order.goods_id,order.product_id)">
				<img src="{{order.goods_img}}" ng-if="order.goods_img" />
				<img src="{{noImg}}" ng-if="order.goods_img==''||order.goods_img==null" />
				<p class="shoptext">{{order.goods_name}}</p>
			</div>
			<div class="item-input choiceframe">
				<div class="choice" on-tap="is_showevaluate(1,$index)">
					<img src="./img/guilin/comment/comment_good_g@2x.png" ng-if="input.evaluation[$index]!=5" />
					<img src="./img/guilin/comment/comment_good@2x.png" ng-if="input.evaluation[$index]==5" />
					<p>好评</p>
				</div>
				<div class="choice" on-tap="is_showevaluate(2,$index)">
					<img src="./img/guilin/comment/comment_good_g@2x.png" ng-if="input.evaluation[$index]!=3" />
					<img src="./img/guilin/comment/comment_middle@2x.png" ng-if="input.evaluation[$index]==3" />
					<p>中评</p>
				</div>
				<div class="choice" on-tap="is_showevaluate(3,$index)">
					<img src="./img/guilin/comment/comment_bad_g@2x.png" ng-if="input.evaluation[$index]!=1" />
					<img src="./img/guilin/comment/comment_bad@2x.png" ng-if="input.evaluation[$index]==1" />
					<p>差评</p>
				</div>
			</div>
			<div class="item shareframe ">
				<textarea rows="4" placeholder="请对产品做出评价分享给其他想买的人" ng-model="comments[$index]"></textarea>
				<div ng-repeat="img in input.uploads_show[$index] track by $index">
					<!--<i class="icon ion-close-circled delImage" on-tap="ondelete($parent.$index,$index)"></i>-->
					<div class="posit">
						<img ng-src='{{img}}' on-tap="showmaximg(img)" />
						<img src="./img/guilin/common/icon.dele-b@2x.png" class="delimg" on-tap="delimg($parent.$index,$index)">
					</div>
					<div ng-class="{'clear_zhang':($index+1)%4==0}"></div>
				</div>
				<img src="./img/guilin/comment/addimg@2x.png" on-tap="addStoreImg($index)" ng-show="input.uploads_show[$index].length!=4" />
			</div>
			<div class="item-input anonymous">
				<img src="{{is_hidden[$index]?'./img/guilin/common/icon_checked_r@2x.png':'./img/guilin/common/icon_uncheck_r@2x.png'}}" on-tap="handleHide($index)" />
				<p>匿名发表</p>
			</div>
		</div>
		<div class="item shopscoreframe">
			<p class="shoptext">店铺评分</p>
			<p>产品描述
				<img src="./img/guilin/comment/mark.icon@2x.png" class="{{star}}" on-tap="getdesc(1,$index+1)" ng-repeat="star in star_desc track by $index" style="margin-left:{{$index*26+30}}px;" />
				<span class="startext" ng-show="starNum_desc==5">非常好</span>
				<span class="startext" ng-show="starNum_desc==4">好</span>
				<span class="startext" ng-show="starNum_desc==3">一般</span>
				<span class="startext" ng-show="starNum_desc==2">差</span>
				<span class="startext" ng-show="starNum_desc==1">非常差</span>
			</p>
			<p class="servicetext">服务态度
				<img src="./img/guilin/comment/mark.icon@2x.png" class="{{star}}" on-tap="getdesc(2,$index+1)" ng-repeat="star in star_service track by $index" style="margin-left:{{$index*26+30}}px;" />
				<span class="startext" ng-show="starNum_service==5">非常好</span>
				<span class="startext" ng-show="starNum_service==4">好</span>
				<span class="startext" ng-show="starNum_service==3">一般</span>
				<span class="startext" ng-show="starNum_service==2">差</span>
				<span class="startext" ng-show="starNum_service==1">非常差</span>
			</p>
			<p>发货速度
				<img src="./img/guilin/comment/mark.icon@2x.png" class="{{star}}" on-tap="getdesc(3,$index+1)" ng-repeat="star in star_send track by $index" style="margin-left:{{$index*26+30}}px;" />
				<span class="startext" ng-show="starNum_send==5">非常好</span>
				<span class="startext" ng-show="starNum_send==4">好</span>
				<span class="startext" ng-show="starNum_send==3">一般</span>
				<span class="startext" ng-show="starNum_send==2">差</span>
				<span class="startext" ng-show="starNum_send==1">非常差</span>
			</p>
		</div>		
	</ion-content>
</ion-view>